﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EC.Application.Interface
{
    using EC.Entity;
    using EC.Entity.Query;
    using EC.Entity.Request.Label;
    using EC.Entity.Response.Label;

    /// <summary>
    /// 标签接口
    /// </summary>
    public interface LabelService
    {
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        LabelResponse Get(int id);

        /// <summary>
        /// 状态
        /// </summary>
        /// <returns></returns>
        JResult UpdateStatus(int id, sbyte status);

        /// <summary>
        /// 新增、编辑
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        JResult Save(SaveLabelRequest request);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        PagedList<LabelQueryResponse> GetPager(LabelQuery query);
    }
}
